package com.mtsmda.daoImpl.endpoint;

import javax.xml.ws.Endpoint;

import com.mtsmda.daoImpl.CustomerDAOImpl;
import com.mtsmda.daoImpl.SpCustomerDAOImpl;

public class CustomerEndPoint {
	private static final Integer SPRING_VERSION = 0;

	public static void main(String[] args) {
		runWS(SPRING_VERSION);
	}

	private static void runWS(Integer version) {
		if (version != null && version.equals(SPRING_VERSION)) {
			Endpoint.publish("http://localhost:9798/wsr/customer",
					new SpCustomerDAOImpl());
			return;
		}
		Endpoint.publish("http://localhost:9798/wsr/customer",
				new CustomerDAOImpl());
	}

}